Função alterar um parágrafo

O botão ainda não foi acionado

<!DOCTYPE html> <html> <head> <meta charset=utf-8> <script> function MinhaFunc() { document.getElementById("exemplo").innerHTML = "O botão foi acionado. Olá Mundo"; } </script> </head> <body> <h2>Função alterar um parágrafo</h2> <p id="exemplo">O botão ainda não foi acionado</p> <button type="button" onclick="MinhaFunc()">Clica no botão </button> </body> </html>